package 建造者模式.entity;

import 建造者模式.extend_item.ChickenBurger;
import 建造者模式.extend_item.Coke;
import 建造者模式.extend_item.Pepsi;
import 建造者模式.extend_item.VegBurger;

public class MealBuilder {

   public Meal prepareVegMeal (){
      Meal meal = new Meal();
      meal.addItem(new VegBurger());
      meal.addItem(new Coke());
      return meal;
   }

   public Meal prepareNonVegMeal (){
      Meal meal = new Meal();
      meal.addItem(new ChickenBurger());
      meal.addItem(new Pepsi());
      return meal;
   }
}
